<!--#include("header.html")-->
<div cond="$XE_VALIDATOR_MESSAGE" class="message {$XE_VALIDATOR_MESSAGE_TYPE}">
	<p>{$XE_VALIDATOR_MESSAGE}</p>
</div>
<form ruleset="updatePage" action="./" method="post" enctype="multipart/form-data" class="form">
	<input type="hidden" name="module" value="page" />
	<input type="hidden" name="act" value="procPageAdminUpdate" />
	<input type="hidden" name="page" value="{$page}" />
	<input type="hidden" name="module_srl" value="{$module_srl}" />
	<input type="hidden" name="success_return_url" value="{getRequestUriByServerEnviroment()}" />
	<div class="table">
		<table width="100%" border="1" cellspacing="0">
			<tr>
				<th scope="row">{$lang->page_type}</th>
				<td class="text">
					{$lang->page_type_name[$module_info->page_type]}
				</td>
			</tr>
			<tr>
				<th scope="row">{$lang->mid}</th>
				<td class="text">
					<input type="text" name="page_name" value="{$module_info->mid}" />
					<p>{$lang->about_mid}</p>
				</td>
			</tr>
			<tr>
				<th scope="row">{$lang->module_category}</th>
				<td class="text">
					<select name="module_category_srl">
						<option value="0">{$lang->notuse}</option>
						<!--@foreach($module_category as $key => $val)-->
						<option value="{$key}" <!--@if($module_info->module_category_srl==$key)-->selected="selected"<!--@end-->>{$val->title}</option>
						<!--@end-->
					</select>
					<p>{$lang->about_module_category}</p>
				</td>
			</tr>
			<tr>
				<th scope="row">{$lang->browser_title}</th>
				<td class="text multiLangEdit">
					<input type="hidden" name="browser_title" value="{htmlspecialchars($module_info->browser_title)}" class="vLang" />
					<input type="text" value="{$module_info->browser_title}" class="vLang" />
					<span class="desc"><a href="#langEdit" class="tgAnchor editUserLang" data-effect="slide">{$lang->cmd_set_multilingual}</a></span>
					<p>{$lang->about_browser_title}</p>
				</td>
			</tr>
			<tr>
				<th scope="row">{$lang->layout}</th>
				<td class="text">
					<select name="layout_srl">
						<option value="0">{$lang->notuse}</option>
						<!--@foreach($layout_list as $key => $val)-->
						<option value="{$val->layout_srl}" <!--@if($module_info->layout_srl==$val->layout_srl)-->selected="selected"<!--@end-->>{$val->title} ({$val->layout})</option>
						<!--@end-->
					</select>
					<p>{$lang->about_layout}</p>
				</td>
			</tr>
			<tr>
				<th scope="row">{$lang->mobile_view}</th>
				<td class="text">
					<input type="checkbox" name="use_mobile" id="use_mobile" value="Y" <!--@if($module_info->use_mobile == "Y")-->checked="checked"<!--@end--> />
					<label for="use_mobile">{$lang->about_mobile_view}</label>
				</td>
			</tr>
			<tr>
				<th scope="row">{$lang->mobile_layout}</th>
				<td class="text">
					<select name="mlayout_srl">
						<option value="0">{$lang->notuse}</option>
						<!--@foreach($mlayout_list as $key => $val)-->
						<option value="{$val->layout_srl}" <!--@if($module_info->mlayout_srl==$val->layout_srl)-->selected="selected"<!--@end-->>{$val->title} ({$val->layout})</option>
						<!--@end-->
					</select>
					<p>{$lang->about_layout}</p>
				</td>
			</tr>
			<!--@if($module_info->page_type != 'ARTICLE')-->
			<tr>
				<th scope="row">{$lang->page_caching_interval}</th>
				<td class="text">
					<input type="text" name="page_caching_interval" value="{(int)$module_info->page_caching_interval}"  /> {$lang->unit_min}
					<p>{$lang->about_page_caching_interval}</p>
				</td>
			</tr>
			<!--@end-->
			<!--@if($module_info->page_type == 'OUTSIDE')-->
			<tr>
				<th scope="row">{$lang->opage_path}</th>
				<td class="text">
					<input type="text" name="path" value="{htmlspecialchars($module_info->path)}"  />
					<p>{$lang->about_opage_path}<b>{realpath("./")}</b></p>
				</td>
			</tr>
			<tr class="row">
				<th scope="row">{$lang->opage_mobile_path}</th>
				<td class="text">
					<input type="text" name="mpath" value="{htmlspecialchars($module_info->mpath)}"  />
					<p>{$lang->about_opage_mobile_path}<b>{realpath("./")}</b></p>
				</td>
			</tr>
			<!--@end-->
			<!--@if($module_info->page_type == 'ARTICLE')-->
			<tr>
				<th scope="row">{$lang->skin_fix}</th>
				<td class="text">
					<input type="checkbox" name="is_skin_fix" id="is_skin_fix" value="Y" checked="checked"|cond="$module_info->is_skin_fix == 'Y'" /> 
					<p>{$lang->about_skin_fix}</p>
				</td>
			</tr>
			<tr>
				<th scope="row">{$lang->skin}</th>
				<td class="text">
					<select name="skin">
						<!--@foreach($skin_list as $key=>$val)-->
						<option value="{$key}" <!--@if($module_info->skin==$key ||(!$module_info->skin && $key=='default'))-->selected="selected"<!--@end-->>{$val->title}</option>
						<!--@end-->
					</select>
					<p>{$lang->about_skin}</p>
				</td>
			</tr>
			<tr class="optionnalData articleType">
				<th scope="row">{$lang->mobile_skin}</th>
				<td class="text">
					<select name="mskin">
						<!--@foreach($mskin_list as $key=>$val)-->
						<option value="{$key}" <!--@if($module_info->mskin==$key ||(!$module_info->mskin && $key=='default'))-->selected="selected"<!--@end-->>{$val->title}</option>
						<!--@end-->
					</select>
					<p>{$lang->about_skin}</p>
				</td>
			</tr>
			<!--@end-->
		</table>
	</div>
	<div class="btnArea">
		<span class="btn"><input type="submit" value="{$lang->cmd_save}" /></span>
		<!--@if($module_info->page_type != 'OUTSIDE')-->
		<span class="btn"><a href="{getUrl('','module','page','act','dispPageAdminContentModify','module_srl',$module_info->module_srl)}" target="_blank">{$lang->cmd_page_modify}...</a></span>
		<!--@end-->
		<!--@if($module=="admin")-->
		<span class="btn"><a href="{getUrl('act','dispPageAdminContent','module_srl','')}">{$lang->cmd_list}</a></span>
		<!--@end-->
	</div>
	<!-- Multilingual -->
	<div id="langEdit" class="langEdit tgContent">
		<ul class="langList"></ul>
		<div class="langInput">
			<h2>{$lang->cmd_multilingual} <strong>{$lang->cmd_modify}...</strong> | <a href="#langEdit">{$lang->cmd_insert}</a></h2>
			<ul>
				{@
					/* move current language to the top */
					$a = array($lang_type=>$lang_supported[$lang_type]);
					unset($lang_supported[$lang_type]);
					$lang_supported = array_merge($a, $lang_supported);
				}
				<li loop="$lang_supported=>$code,$name" class="{$code}"><label for="{$code}_var1">{$name}</label> <input type="text" value="" id="{$code}_var1" /></li>
			</ul>
			<div class="action">
				<div class="btnArea">
					<span class="btn small"><input type="submit" value="{$lang->use}|{$lang->use_after_save}" /></span>
				</div>
				<p><a href="{getUrl('act','dispModuleAdminLangcode')}">{$lang->multilingual_manager}</a></p>
			</div>
		</div>
	</div>
</form>
